package com.fjnu.entities;

import java.util.HashSet;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;

/**
 * ReserveLand entity. @author MyEclipse Persistence Tools
 */
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
@JsonIdentityInfo(
        generator = ObjectIdGenerators.PropertyGenerator.class,
        property = "id",
        scope = ReserveLand.class)
public class ReserveLand implements java.io.Serializable {

	// Fields

	private Integer id;
	private String reserveLandNum;
	private String reserveLandName;
	private String reserveLandCode;
	private Set mainInstruments = new HashSet(0);

	// Constructors

	/** default constructor */
	public ReserveLand() {
	}

	/** minimal constructor */
	public ReserveLand(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public ReserveLand(Integer id, String reserveLandNum,
			String reserveLandName, String reserveLandCode,Set mainInstruments) {
		this.id = id;
		this.reserveLandNum = reserveLandNum;
		this.reserveLandName = reserveLandName;
		this.reserveLandCode = reserveLandCode;
		this.setMainInstruments(mainInstruments);
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getReserveLandNum() {
		return this.reserveLandNum;
	}

	public void setReserveLandNum(String reserveLandNum) {
		this.reserveLandNum = reserveLandNum;
	}

	public String getReserveLandName() {
		return this.reserveLandName;
	}

	public void setReserveLandName(String reserveLandName) {
		this.reserveLandName = reserveLandName;
	}

	public String getReserveLandCode() {
		return this.reserveLandCode;
	}

	public void setReserveLandCode(String reserveLandCode) {
		this.reserveLandCode = reserveLandCode;
	}
	public Set getMainInstruments() {
		return mainInstruments;
	}

	public void setMainInstruments(Set mainInstruments) {
		this.mainInstruments = mainInstruments;
	}

}